/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [Example_02_Enum.java]
 * Creation Date        [09-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_oop;

/**
 * JDK 5 之前的枚举定义方式
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class Example_02_Enum {

	/**
	 * 测试方法
	 * 
	 * @param args
	 *            命令行参数
	 */
	@SuppressWarnings("unused")
	public static void main(String[] args) {
		// JDK5 之前的枚举定义方式
		Orientation horizontal = Orientation.HORIZONTAL;
	}

}

class Orientation {

	public static final Orientation HORIZONTAL = new Orientation();

	public static final Orientation VERTICAL = new Orientation();

	private Orientation() {
	}
}